#!/bin/bash
echo "Start of script add_apc.sh"
echo "Installing APC and adding the extension to php.ini"
cd /tmp
wget -nv http://pecl.php.net/get/APC-3.1.9.tgz
tar xfz APC-3.1.9.tgz
cd APC-3.1.9
phpize
./configure
make
make install
cd
rm -rf /tmp/APC-3.1.9
echo "extension=apc.so" >> /etc/php5/apache2/php.ini
echo "Need to restart apache to make this work!"
echo "End of script add_apc.sh"

